package com.greenhouse.service.impl;

import com.greenhouse.mapper.environment.EnvironmentMapper;
import com.greenhouse.model.Environment;
import com.greenhouse.service.EnvironmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EnvironmentServiceImpl implements EnvironmentService {

    @Autowired
    EnvironmentMapper environmentMapper;

    @Override
    public Integer insertEnvironment(String name, Environment environment) {
        environmentMapper.insertEnvironment(name,environment);
        return 0;
    }
}
